package com.etc.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.etc.entity.Users;

//xx/api/listUser
@Controller
@RequestMapping("api")
public class UsersController {
	@Resource(name = "u")
	private Users u;

	@RequestMapping(value = "listUser")
	public String getUser(Model model) {
		model.addAttribute("u", u);
		return "users";
	}
}
